package com.company.mapper;

import com.company.model.Employee;
import com.company.model.EmployeeQuery;
import java.util.List;

public interface EmployeeMapper {
    // 分页+多条件查询
    List<Employee> getEmployeeByPage(EmployeeQuery query);
    // 查询总条数（配合分页）
    int getTotalCount(EmployeeQuery query);
    // 根据ID查询
    Employee getEmployeeById(int id);
    // 添加员工
    void addEmployee(Employee employee);
    // 更新员工
    void updateEmployee(Employee employee);
    // 删除员工
    void deleteEmployee(int id);
}